package com.sanyang.logistics.liuxu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.liuxu.dao.Dwdao;
import com.sanyang.logistics.liuxu.dao.Hwdao;
import com.sanyang.logistics.pojo.Product;
@Repository("hwservice")
public class Hwserviceimpl implements Hwservice{
    @Autowired
	private Hwdao ddao;
    //查询
	@Override
	public List<Product> hwqueryAll(Product product) {
		List<Product> hwqueryAll = ddao.hwqueryAll(product);
		return hwqueryAll;
	}
	//添加
	@Override
	public void hwinsert(Product product) {
		ddao.hwinsert(product);
	}
	//删除
	@Override
	public void hwdel(Integer pid) {
		ddao.hwdel(pid);
		
	}
	//修改拿值
	@Override
	public Product hwxui(Integer pid) {
		return ddao.hwxui(pid);
	}
	//修改
	@Override
	public void hwupdate(Product product) {
		ddao.hwupdate(product);
	}

}
